<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">

<%@page import="java.util.Map"%>
<%@page import="ygflower.controller.UserController"%>
<%@page import="ygflower.domain.User"%><html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Insert title here</title>
</head>
<body>
<% 
	Map<String,String> errors = (Map)request.getAttribute(UserController.ErrorMessages);

%>
<h3>
<%	
if(errors !=null){
	for(String errorMessage:errors.values()){
%> 
	<%=errorMessage %><br>
<%
	}
}
%> 
</h3>
<form action="/ygflower/user.htm?method=loginUser"  method="post">
	<table>
		<tr>
			<td>
				名字：<input type="text" name="<%=User.PropertyName %>">
			</td>
		</tr>
		<tr>
			<td>
				密码<input type="password" name="<%=User.PropertyPassword %>">
			</td>
		</tr>

		<tr>
			<td>
				<input type="submit" name="submit" value="login">
			</td>
		</tr>
	</table>
</body>
</html>